package com.example.baiguangsystem.mapper;

import com.example.baiguangsystem.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 书本类dao接口
 *
 * @Author: 27641
 * @ProjectName: BaiGuangSystem
 * @Date: 2022/02/04/12:27
 * @noinspection SpellCheckingInspection
 */
@Mapper
public interface BookMapper {

    /**
     * 根据书本Id查看书本信息
     *
     * @param bookId 需要查看的书本Id
     * @return 查询结果
     */
    public Book selectBookMessagesById(@Param("bookId") Integer bookId);

    /**
     * 根据书本名字查看书本信息
     *
     * @param bookName 需要查看的书本名字
     * @return 查询结果
     */
    public Book selectBookMessagesByName(@Param("bookName") String bookName);


}
